runtime.p.runq (field)
32 uses
runtime (current package)
proc.go#L5614: gp := pp.runq[pp.runqtail%uint32(len(pp.runq))].ptr()
proc.go#L6542: if n > int32(len(pp.runq))/2 {
proc.go#L6543: n = int32(len(pp.runq)) / 2
proc.go#L6729: if t-h < uint32(len(pp.runq)) {
proc.go#L6730: pp.runq[t%uint32(len(pp.runq))].set(gp)
proc.go#L6744: var batch [len(pp.runq)/2 + 1]*g
proc.go#L6749: if n != uint32(len(pp.runq)/2) {
proc.go#L6753: batch[i] = pp.runq[(h+i)%uint32(len(pp.runq))].ptr()
proc.go#L6790: for !q.empty() && t-h < uint32(len(pp.runq)) {
proc.go#L6792: pp.runq[t%uint32(len(pp.runq))].set(gp)
proc.go#L6800: return (pp.runqtail + o) % uint32(len(pp.runq))
proc.go#L6804: pp.runq[off(i)], pp.runq[off(j)] = pp.runq[off(j)], pp.runq[off(i)]
proc.go#L6836: gp := pp.runq[h%uint32(len(pp.runq))].ptr()
proc.go#L6859: if qn > uint32(len(pp.runq)) { // read inconsistent h and t
proc.go#L6875: gp := pp.runq[(h+i)%uint32(len(pp.runq))].ptr()
proc.go#L6925: if n > uint32(len(pp.runq)/2) { // read inconsistent h and t
proc.go#L6929: g := pp.runq[(h+i)%uint32(len(pp.runq))]
proc.go#L6943: n := runqgrab(p2, &pp.runq, t, stealRunNextG)
proc.go#L6948: gp := pp.runq[(t+n)%uint32(len(pp.runq))].ptr()
proc.go#L6953: if t-h+n >= uint32(len(pp.runq)) {
runtime2.go#L672: runq [256]guintptr
![]() |
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |